package cn.wd.user.service.impl;


import cn.wd.user.domain.mapper.StatisticsMapper;
import cn.wd.user.service.IStatisticService;
import cn.wd.user.utils.TokenManager;
import org.springframework.stereotype.Service;

@Service
public class StatisticServiceImpl implements IStatisticService {

    private final StatisticsMapper mapper;

    public StatisticServiceImpl(StatisticsMapper mapper) {
        this.mapper = mapper;
    }

    @Override
    public int selectRegisterToday() {
        return mapper.selectRegisterToday();
    }

    @Override
    public int selectBulletMsgTody() {
        return mapper.selectBulletMsgTody();
    }

    @Override
    public int selectReportTody() {
        return mapper.selectReportTody();
    }

    @Override
    public int selectCurrentOnline() {
        return TokenManager.size();
    }
}